package com.qq.pojo;

/**
 * @author： Aeolia
 * @Description： TODO
 * @Date： 2021/10/17 0:49
 */
public enum CODE {


    // 消息发送成功
    SEND_MESSAGE(1000,"请求发送消息"),
    SEND_MESSAGE_SUCCESS(1001,"消息发送成功"),
    SEND_MESSAGE_FAIL(1002,"消息发送失败"),
    // 用户登录成功
    LOGIN_REQUEST(2000,"请求用户登录"),
    LOGIN_SUCCESS(2000,"用户登录成功"),
    LOGIN_FAIL(2001,"用户登录失败");

    //
    int code;
    String explanation;

    CODE(int code, String explanation) {
        this.code = code;
        this.explanation = explanation;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getExplanation() {
        return explanation;
    }

    public void setExplanation(String explanation) {
        this.explanation = explanation;
    }
}
